package com.hdu.dao;

import com.hdu.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    boolean addUser(User user);

    boolean updateUser(User user);

    boolean deleteUserById(Integer id);

    User getUserById(Integer id);
    User getUserByName(String username);

    List<User> getAllUsers();

    int countByUsername(String username);

    User getUserByPhone(String phone);

}